package com.ruoyi.setmeal.client;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.setmeal.configuration.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "ruoyi-dish",configuration = FeignConfiguration.class)
public interface DishFeignClient {
    @GetMapping("/dish/cid/{categoryId}")
    public AjaxResult list(@PathVariable("categoryId") Long categoryId);
    @GetMapping("/dish/dishName/{dishName}")
    public AjaxResult selectDishListByDishName(@PathVariable("dishName") String dishName);
}
